<?php
/**
 * 基础控制器
 */

namespace app\api\controller;

use app\common\controller\BaseController;

class Base extends BaseController {

    protected $token;
    protected $userInfo;
    protected $userId;

    public function __construct() {
        parent::__construct(App());
        $this->token    = $this->request->header('App-Login-Token');
        $this->userInfo = $this->request->USER_INFO;
        $this->userId   = $this->userInfo['id'];
    }
}
